VC11HdrJoint

V = Variables

R = Reading functions

The VC11HdrJoint function calculate the posit Joint for a device according to the HIGH DATA RAPPRESENTATION scheme.

IMPLEMENTATION

VC11HdrJoint (Joint,HdrType,ResultX,ResultY,ResultZ)

Parameters:

IN/OUTVARIABLE TYPEEXAMPLE NAMEDIM
Joint JOINT joint Device JOINT
HdrType GLOBAL
CONST
SYSTEM
2 B HDR viewing type
ResultX GLOBAL returnX L X axis position converted
ResultY GLOBAL returnY L Y axis position converted
ResultZ GLOBAL returnZ L Z axis position converted

HdrType

The HDR viewing allows to center the range of units on integers values. The value is calculated by the encoder, measure and pulse is approximated to the nearest unit.
0 - Hdr disable.
1 - Hdr enable, in the central band between two units (between 0→1 the band is [0.25, 0.75] ) it's shown a counter that oscillates between two values.
2 - Hdr enable

Esempio

Sia jtXYZ un device JOINT con parametri

measurex: 220pulsex: 4096encoderx: 6229662296/4096*220 = 3345,97positx:3345
measurey: 110pulsey: 4096encodery: 7369273692/4096*110 = 1979,03posity:1979
measurez: 336pulsez: 4096encoderz: -6939-6939/4096*336 = -569,21positz:-569

VC11HdrJoint(jtXYZ,2,ResultX, ResultY, ResultZ)

restituisce i valori ResultX = 3346 ResultY = 1979 ResultZ = -569